package com.atguigu.spzx.manner.test;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.read.listener.ReadListener;
import com.atguigu.spzx.model.vo.CategoryExcelVo;

public class CategoryExcelListener extends AnalysisEventListener<CategoryExcelVo> {


    @Override
    public void invoke(CategoryExcelVo categoryExcelVo, AnalysisContext analysisContext) {
        System.out.println("每读取一行都插入数据库");
        System.out.println(categoryExcelVo);
        System.out.println("每读取一行都插入数据库");
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("读取完成");


    }
}
